package com.huawei.pet.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.huawei.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * <p>
 * 
 * </p>
 *
 * @author raintea
 * @since 2022-05-19
 */
@Data
public class Pet extends BaseDomain{

    private static final long serialVersionUID = 1L;

    private String name;
    private BigDecimal saleprice;
    private BigDecimal costprice;
    private String resources;
    /**
     * 状态：0下架，1上架
     */
    private Integer state=0;
    /**
     * 类型id
     */
    private Long typeId;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date offsaletime;

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date onsaletime;

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date createtime=new Date();
    /**
     * 店铺Id 如果被领养店铺id为null
     */
    private Long shopId;
    /**
     * 如果被领养为领养用户id
     */
    private Long userId;
    private Long searchMasterMsgId;

    //接收宠物详情
    private PetDetail detail;

}
